package com.binance.notification.api;

import javax.servlet.http.HttpServletResponse;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import com.binance.master.configs.FeignConfig;
import com.binance.master.constant.Constant;
import com.binance.master.models.APIResponse;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@FeignClient(name = Constant.NOTIFICATION_WEB_SERVICE, configuration = FeignConfig.class)
@Api(value = "该接口提供给极光使用，用于获取国际化资源信息", tags = "该接口提供给极光使用，用于获取国际化资源信息")
public interface JApi {

    @ApiOperation(value = "获取国际化资源信息")
    @GetMapping(value = {"/internal/i18n/resources"})
    public void getResources(HttpServletResponse response);

    @ApiOperation(value = "获取极光API地址")
    @GetMapping(value = {"/internal/apiurl"})
    public APIResponse<String> getApiUrl();
}
